import java.lang.invoke.MutableCallSite;

class MyArray {
    public Object[] array = new Object[10];

    public void set (int pos ,Object val){
        this.array[pos] = val ;
    }
    public Object get(int pos){
        return array[pos];
    }

}
public class Test2 {
    public static void main(String[] args) {
        MyArray myArray = new MyArray() ;
        myArray.set(0 , 10);
        int i = (int)myArray.get(0) ;
    }
}
